package org.kaer.election.bean;

import java.util.Arrays;

public class SelectedElection {
	public String type;
	public int resultCode;
	public int electionId; // 投票ID
	private int electionType; // 1普选候选人 2职位投票
	public String regionName;// 投票区域
	public String electionName; // 投票名称
	public String templateName; //
	public String startTime; // 开始时间


	public int electionTemplateId;
	public String endTime;
	public int voteTotalCount;
	public int votingState;
	public int regionId; // 投票区域ID
	public String action;

	public Positions[] positionList ;
	public Candidate[] candidateList  ;

	@Override
	public String toString() {
		return "SelectedElection [type=" + type + ", resultCode=" + resultCode + ", electionId=" + electionId
				+ ", electionType=" + electionType + ", regionName=" + regionName + ", electionName=" + electionName
				+ ", templateName=" + templateName + ", startTime=" + startTime +  ", electionTemplateId=" + electionTemplateId + ", endTime="
				+ endTime + ", voteTotalCount=" + voteTotalCount + ", votingState=" + votingState + ", regionId="
				+ regionId + ", action=" + action + ", positionList=" + Arrays.toString(positionList)
				+ ", candidateList=" + Arrays.toString(candidateList) + "]";
	}

	public int getElectionType() {
		return electionType;
	}

	public void setElectionType(int electionType) {
		this.electionType = electionType;
	}

}
